<template>
  <div>
    <el-dialog
      title="新建会员信息"
      :visible.sync="create_member_show"
      width="30%"
    >
      <el-form
        :model="create_member_data"
        ref="create_member_data"
        label-width="80px"
        :rules="rules"
        inline
      >
        <el-form-item label="姓名" prop="name">
          <el-input
            v-model="create_member_data.name"
            placeholder="请输入姓名"
            clearable
          ></el-input>
        </el-form-item>
        <el-form-item label="年龄" prop="age">
          <el-input
            v-model="create_member_data.age"
            placeholder="请输入年龄"
            clearable
          ></el-input>
        </el-form-item>
        <el-form-item label="性别" prop="sex">
          <el-select
            v-model="create_member_data.sex"
            placeholder="请选择性别"
            clearable
          >
            <el-option
              v-for="item in sexList"
              :key="item.label"
              :label="item.label"
              :value="item.value"
            ></el-option>
          </el-select>
        </el-form-item>
      </el-form>
      <span slot="footer" class="dialog-footer">
        <el-button type="primary" @click="createMember('create_member_data')"
          >确 定</el-button
        >
      </span>
    </el-dialog>
  </div>
</template>

<script>
export default {
  props: ["create_member_show", "sexList", "rules"],
  data() {
    return {
      create_member_data: {},
    };
  },
  methods: {
    createMember() {},
  },
};
</script>

<style>
</style>